import request from "@/utils/request";

// 查询视觉投票列表
export function listVote(query) {
  return request({
    url: "/visionVote/list",
    method: "get",
    params: query,
  });
}

// 获取视觉投票信息
export function getVoteInfo(id) {
  return request({
    url: "/visionVote/getVoteInfo",
    method: "get",
    params: { id },
  });
}

// 新增视觉投票
export function addVote(data) {
  return request({
    url: "/visionVote/add",
    method: "post",
    data: data,
  });
}

// 修改视觉投票
export function editVote(data) {
  return request({
    url: "/visionVote/edit",
    method: "post",
    data: data,
  });
}

// 删除视觉投票
export function deleteVote(ids) {
  return request({
    url: "/visionVote/delete",
    method: "post",
    data: ids,
  });
}
